package com.balloon.gateway.security.user.dao;

import com.balloon.gateway.security.user.entity.SystemUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @author liaofuxing
 * @date 2020/03/13 22:01
 */
@Repository
public interface SystemUserDao extends JpaRepository<SystemUser, Integer>, JpaSpecificationExecutor<SystemUser> {

    SystemUser findByUsername(String username);

    SystemUser findByPhone(String phone);

}
